using System;
using System.Collections.Generic;
using Castle.ActiveRecord;

namespace Karma.Framework.Core.Modules.Reports.Definition
{
    [ActiveRecord("[ListReport]")]
    public class ListReport : Report
    {
        [JoinedKey]
        public override Int64 Id { get; set; }

        [Property]
        public string DefaultGroupField { get; set; }

        [Property(Length = 1000)]
        public string CountQuery { get; set; }

        [HasMany(typeof(ReportColumn), Cascade = ManyRelationCascadeEnum.All,
            Lazy = false, ColumnKey = "[ListReport]", Table = "[ReportColumn]")]
        public IList<ReportColumn> Columns { get; set; }

    }
}